#include <iostream>
#include <map>
using namespace std;

typedef map<string, string> MAP_INTSTRING;
typedef multimap<string, string>MMAP_INTSTRING;

template<typename T>
void DisplayContent(T& container)
{
    for(auto myiterator = container.cbegin(); myiterator != container.end(); ++myiterator)
    {
        cout << myiterator->second << endl;
    }
};

int main(int argc, char const *argv[])
{
    MAP_INTSTRING map1;
    map1.insert(make_pair("life", "life is beautiful"));
    map1.insert(make_pair("weather", "sunnyday"));
    string search;
    cout << "Enter the key you want to search:" << endl;
    cin >> search;
    map<string, string>::iterator findIterator = map1.find(search);
    if(findIterator != map1.end())
    {
        cout << findIterator->second << endl;
    }
    else cout << 0 << endl;
    return 0;
}
